<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI消息中心列表</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background-color: #f4f7f6;
            color: #333;
            min-height: 100vh;
        }

        /* 主内容区 */
        .main-content {
            max-width: 900px; /* Adjusted to match container width */
            margin: 0 auto;
            padding: 20px;
            overflow-y: auto;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ddd;
            position: relative;
        }

        .page-title-container {
            display: flex;
            align-items: center;
        }

        .back-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #3498db;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-right: 15px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            font-size: 18px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .back-btn:hover {
            background: #2980b9;
            transform: translateX(-3px);
        }

        .page-title {
            font-size: 24px;
            font-weight: bold;
        }

        .user-info {
            display: flex;
            align-items: center;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
            background: #3498db;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .user-name {
            font-weight: bold;
        }


        .container {
            max-width: 900px;
            margin: 0 auto; /* Removed top margin */
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
        }

        .message-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .message-item {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid #eee;
            transition: background-color 0.3s ease;
        }

        .message-item:last-child {
            border-bottom: none;
        }

        .message-item:hover {
            background-color: #f9f9f9;
        }

        .message-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .message-indicator.unread {
            background-color: #e74c3c; /* Red for unread */
        }

        .message-indicator.read {
            background-color: #bdc3c7; /* Gray for read */
        }

        .message-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .message-time {
            font-size: 12px;
            color: #999;
            margin-bottom: 5px;
        }

        .message-text {
            font-size: 15px;
            line-height: 1.5;
        }

        .view-details-btn {
            display: inline-block;
            margin-left: 20px;
            padding: 8px 15px;
            background-color: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-size: 14px;
            transition: background-color 0.3s ease;
            flex-shrink: 0;
        }

        .view-details-btn:hover {
            background-color: #2980b9;
        }

        /* Optional: Style for read messages */
        .message-item.read .message-text,
        .message-item.read .message-time {
            color: #7f8c8d;
        }
    </style>
</head>
<body>
    <div class="main-content">
        <div class="header">
            <div class="page-title-container">
                <a href="#" class="back-btn">←</a> <!-- Link needs to be updated -->
                <div class="page-title">消息中心</div>
            </div>
            <div class="user-info">
                <div class="user-avatar">A</div>
                <div class="user-name">管理员</div>
            </div>
        </div>

        <div class="container">
            <h1>消息中心</h1>

            <ul class="message-list">
                <!-- Example Unread Message -->
                <li class="message-item unread">
                    <div class="message-indicator unread"></div>
                    <div class="message-content">
                        <div class="message-time">2023-12-21 10:00:00</div>
                        <div class="message-text">有一条新的案件委托已流转到您名下，请及时处理。</div>
                    </div>
                    <a href="#" class="view-details-btn">查看详情</a>
                </li>

                <!-- Example Read Message -->
                <li class="message-item read">
                    <div class="message-indicator read"></div>
                    <div class="message-content">
                        <div class="message-time">2023-12-20 15:30:00</div>
                        <div class="message-text">您的案件委托已完成，请查看结果。</div>
                    </div>
                    <a href="#" class="view-details-btn">查看详情</a>
                </li>

                <!-- Add more message items here -->
            </ul>
        </div>
    </div>
</body>
</html>